home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 4
/
Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso
/
Pearls
/
dev
/
boopsi
/
TextFieldClass
/
Oberon
/
TextField.mod
< prev
Wrap
Text File
|
1995-06-23
|
3KB
|
137 lines
MODULE TextField;
(* Oberon Interface for textfield.gadget © 1995 Mark Thomas
** $VER: TextField.mod 3.1 (24.2.94)
**
** Stefan
**
** slbrbbbh@w250zrz.zrz.TU-Berlin.de
** StElb@IRC
**
** Updated for V3.1 by Mark Thomas
*)
IMPORT Exec, I := Intuition, u := Utility;
(*
* textfield.h
*
* Copyright © 1995 Mark Thomas
*
* Defines for the BOOPSI textfield.gadget V3.1.
*)
CONST
tagBase = u.user + 04000000H;
(*
* V1
*)
text * = tagBase + 1;
insertText * = tagBase + 2;
textFont * = tagBase + 3;
delimiters * = tagBase + 4;
top * = tagBase + 5;
blockCursor * = tagBase + 6;
size * = tagBase + 7;
visible * = tagBase + 8;
lines * = tagBase + 9;
noGhost * = tagBase + 10;
maxSize * = tagBase + 11;
border * = tagBase + 12;
textAttr * = tagBase + 13;
fontStyle * = tagBase + 14;
up * = tagBase + 15;
down * = tagBase + 16;
alignment * = tagBase + 17;
vCenter * = tagBase + 18;
ruledPaper * = tagBase + 19;
paperPen * = tagBase + 20;
inkPen * = tagBase + 21;
linePen * = tagBase + 22;
userAlign * = tagBase + 23;
spacing * = tagBase + 24;
clipStream * = tagBase + 25;
clipStream2 * = tagBase + 26;
undoStream * = tagBase + 26;
blinkRate * = tagBase + 27;
inverted * = tagBase + 28;
partial * = tagBase + 29;
cursorPos * = tagBase + 30;
(*
* V2
*)
readOnly * = tagBase + 31;
modified * = tagBase + 32;
acceptChars * = tagBase + 33;
rejectChars * = tagBase + 34;
passCommand * = tagBase + 35;
lineLength * = tagBase + 36;
maxSizeBeep * = tagBase + 37;
deleteText * = tagBase + 38;
selectSize * = tagBase + 39;
copy * = tagBase + 40;
copyAll * = tagBase + 41;
cut * = tagBase + 42;
paste * = tagBase + 43;
erase * = tagBase + 44;
undo * = tagBase + 45;
(*
* V3
*)
tabSpaces * = tagBase + 46;
nonPrintChars * = tagBase + 47;
(*
*Border
*
* See docs for width and height sizes these borders are
*)
none * = 0;
bevel * = 1;
doubleBevel * = 2;
(*
*Alignment
*)
left * = 0H;
center * = 1H;
right * = 2H;
VAR
base * : Exec.LibraryPtr;
textFieldClass * : I.IClassPtr;
PROCEDURE GetClass *{base,-30}():I.IClassPtr;
(*
* I don't know the type for C's char*.
*
* PROCEDURE GetCopyright *{base,-36}():CharPtr;
*)
BEGIN
(*
* TextField autoinit and autoterminate functions
* for Oberon.
*
* If you just compile and link this into your app
* then TextFieldBase will automatically get setup
* before main() is called.
*)
base := Exec.OpenLibrary("gadgets/textfield.gadget", 3);
textFieldClass := GetClass();
CLOSE
IF base#NIL THEN Exec.CloseLibrary(base) END;
END TextField.